from django.db import models
from django.contrib.auth.models import User

# Create your models here.
class Page(models.Model):
    name = models.CharField(max_length=30, primary_key=True)
    contents = models.TextField()
    last_editor = models.ForeignKey(User)
    last_edit_date = models.DateTimeField(auto_now=True)
    
    def __unicode__(self):
        return self.name
